package com.myworkbench.workbench.application;

import com.myworkbench.workbench.domain.entity.resource.Resource;
import com.myworkbench.workbench.domain.entity.role.Role;
import com.myworkbench.workbench.domain.entity.role.RoleId;
import com.myworkbench.workbench.domain.entity.user.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 增删改
 */
public interface SecurityConfigApplication {

    void saveUser(User user);
    void updateUser(User  user);
    void saveRole(Role role);
    void updateRole(Role role);
    void saveResource(Resource resource);
    void updateResource(Resource  resource);
    void grantRole(User user,List<Role> roles);
    void grantResources(Role role, List<Resource> resources);

}
